import request from "../utils/request";

//条件分页查询
export const queryWarehouseArea = (page,pageSize,warehouseName,name) => {return request.get(`/warehousearea?page=${page}&pageSize=${pageSize}&warehouseName=${warehouseName}&name=${name}`)};

//添加库区
export const addWarehouseArea = (data) => {return request.post(`/warehousearea`,data)};

//回显查询
export const queryWarehouseAreaById = (id) => {return request.get(`/warehousearea/${id}`)};

//修改库区
export const updateWarehouseArea = (data) => {return request.put(`/warehousearea`,data)};

//删除库区
export const deleteWarehouseArea = (id) => {return request.delete(`/warehousearea/${id}`)};

//查询所有库区
export const queryWarehouseAreaAll = () => {return request.get(`/warehousearea/all`)};